import Mock from "mockjs";

// 图表数据
let List = [];
export default {
  getStatisticalData: () => {
    for (let i = 0; i < 7; i++) {
      List.push(
        Mock.mock({
          vue: Mock.Random.float(100, 8000, 0, 2),
          wechat: Mock.Random.float(100, 8000, 0, 2),
          ES6: Mock.Random.float(100, 8000, 0, 2),
          Redis: Mock.Random.float(100, 8000, 0, 2),
          React: Mock.Random.float(100, 8000, 0, 2),
          springboot: Mock.Random.float(100, 8000, 0, 2)
        })
      );
    }
    return {
      code: 20000,
      data: {
        // 饼图
        videoData: [
          {
            name: "springboot",
            value: Mock.Random.float(1000, 10000, 0, 2)
          },
          {
            name: "vue",
            value: Mock.Random.float(1000, 10000, 0, 2)
          },
          {
            name: "小程序",
            value: Mock.Random.float(1000, 10000, 0, 2)
          },
          {
            name: "ES6",
            value: Mock.Random.float(1000, 10000, 0, 2)
          },
          {
            name: "Redis",
            value: Mock.Random.float(1000, 10000, 0, 2)
          },
          {
            name: "React",
            value: Mock.Random.float(1000, 10000, 0, 2)
          }
        ],
        // 柱状图
        userData: [
          {
            date: "周一",
            new: Mock.Random.integer(1, 100),
            active: Mock.Random.integer(100, 1000)
          },
          {
            date: "周二",
            new: Mock.Random.integer(1, 100),
            active: Mock.Random.integer(100, 1000)
          },
          {
            date: "周三",
            new: Mock.Random.integer(1, 100),
            active: Mock.Random.integer(100, 1000)
          },
          {
            date: "周四",
            new: Mock.Random.integer(1, 100),
            active: Mock.Random.integer(100, 1000)
          },
          {
            date: "周五",
            new: Mock.Random.integer(1, 100),
            active: Mock.Random.integer(100, 1000)
          },
          {
            date: "周六",
            new: Mock.Random.integer(1, 100),
            active: Mock.Random.integer(100, 1000)
          },
          {
            date: "周日",
            new: Mock.Random.integer(1, 100),
            active: Mock.Random.integer(100, 1000)
          }
        ],
        // 折线图
        orderData: {
          date: ["20191001", "20191002", "20191003", "20191004", "20191005", "20191006", "20191007"],
          data: List
        },
        tableData: [
          {
            name: "ES6",
            todayBuy: Mock.Random.float(100, 1000, 0, 2),
            monthBuy: Mock.Random.float(3000, 5000, 0, 2),
            totalBuy: Mock.Random.float(40000, 1000000, 0, 2)
          },
          {
            name: "小程序",
            todayBuy: Mock.Random.float(100, 1000, 0, 2),
            monthBuy: Mock.Random.float(3000, 5000, 0, 2),
            totalBuy: Mock.Random.float(40000, 1000000, 0, 2)
          },
          {
            name: "Vue",
            todayBuy: Mock.Random.float(100, 1000, 0, 2),
            monthBuy: Mock.Random.float(3000, 5000, 0, 2),
            totalBuy: Mock.Random.float(40000, 1000000, 0, 2)
          },
          {
            name: "springboot",
            todayBuy: Mock.Random.float(100, 1000, 0, 2),
            monthBuy: Mock.Random.float(3000, 5000, 0, 2),
            totalBuy: Mock.Random.float(40000, 1000000, 0, 2)
          },
          {
            name: "React",
            todayBuy: Mock.Random.float(100, 1000, 0, 2),
            monthBuy: Mock.Random.float(3000, 5000, 0, 2),
            totalBuy: Mock.Random.float(40000, 1000000, 0, 2)
          },
          {
            name: "Redis",
            todayBuy: Mock.Random.float(100, 1000, 0, 2),
            monthBuy: Mock.Random.float(3000, 5000, 0, 2),
            totalBuy: Mock.Random.float(40000, 1000000, 0, 2)
          }
        ]
      }
    };
  },
  getHours: () => {
    return {
      data: [
        {
          flightDate: "2021-02-01",
          zcjr: 28,
          rlyl: 4.29,
          bc: 50,
          qjjc: 60,
          dmsj: 769,
          kzsj: 6446,
          ldsj: 120.2497,
          kgzw: 9536,
          kgyz: 966054,
          jl: 97100,
          passnum: 5122,
          passweight: 456255,
          hyweight: 78659,
          kgzzl: 1209747.297,
          ask: 11863340,
          kghyzzl: 145288.303,
          kghyzzlXz: 632572.797,
          lkzzl: 577174.5,
          rpk: 6480142,
          hyzzl: 129322.105,
          yszzl: 706496.605
        },
        {
          flightDate: "2021-02-02",
          zcjr: 28,
          rlyl: 3.28,
          bc: 40,
          qjjc: 46,
          dmsj: 614,
          kzsj: 4895,
          ldsj: 91.8165,
          kgzw: 7346,
          kgyz: 739310,
          jl: 69430,
          passnum: 4073,
          passweight: 363411,
          hyweight: 67101,
          kgzzl: 924764.736,
          ask: 9154692,
          kghyzzl: 101822.519,
          kghyzzlXz: 459224.751,
          lkzzl: 465539.985,
          rpk: 5222553,
          hyzzl: 110179.075,
          yszzl: 575719.06
        },
        {
          flightDate: "2021-02-03",
          zcjr: 28,
          rlyl: 3.84,
          bc: 50,
          qjjc: 54,
          dmsj: 780,
          kzsj: 5677,
          ldsj: 107.6166,
          kgzw: 8550,
          kgyz: 870527,
          jl: 74248,
          passnum: 5353,
          passweight: 476811,
          hyweight: 90983,
          kgzzl: 1081363.543,
          ask: 10572957,
          kghyzzl: 130364.479,
          kghyzzlXz: 492550.999,
          lkzzl: 588812.544,
          rpk: 6623834,
          hyzzl: 148303.616,
          yszzl: 737116.16
        },
        {
          flightDate: "2021-02-04",
          zcjr: 28,
          rlyl: 3.88,
          bc: 51,
          qjjc: 57,
          dmsj: 796,
          kzsj: 5715,
          ldsj: 108.5166,
          kgzw: 9215,
          kgyz: 919397,
          jl: 75975,
          passnum: 5595,
          passweight: 499419,
          hyweight: 83535,
          kgzzl: 1058336.118,
          ask: 10578907,
          kghyzzl: 111846.639,
          kghyzzlXz: 465615.819,
          lkzzl: 592720.299,
          rpk: 6652527,
          hyzzl: 127500.643,
          yszzl: 720220.942
        },
        {
          flightDate: "2021-02-05",
          zcjr: 28,
          rlyl: 5.19,
          bc: 63,
          qjjc: 74,
          dmsj: 1044,
          kzsj: 7681,
          ldsj: 145.4163,
          kgzw: 11886,
          kgyz: 1195283,
          jl: 111138,
          passnum: 7172,
          passweight: 640359,
          hyweight: 109887,
          kgzzl: 1441927.239,
          ask: 14263922,
          kghyzzl: 159946.01,
          kghyzzlXz: 648766.977,
          lkzzl: 793370.052,
          rpk: 8897301,
          hyzzl: 178451.717,
          yszzl: 971821.769
        },
        {
          flightDate: "2021-02-06",
          zcjr: 28,
          rlyl: 5.61,
          bc: 68,
          qjjc: 80,
          dmsj: 1078,
          kzsj: 8340,
          ldsj: 156.9663,
          kgzw: 13048,
          kgyz: 1320991,
          jl: 118914,
          passnum: 7836,
          passweight: 698148,
          hyweight: 110296,
          kgzzl: 1585589.768,
          ask: 15599618,
          kghyzzl: 186447.804,
          kghyzzlXz: 715439.789,
          lkzzl: 870149.979,
          rpk: 9784839,
          hyzzl: 181557.384,
          yszzl: 1051707.363
        },
        {
          flightDate: "2021-02-07",
          zcjr: 28,
          rlyl: 5.69,
          bc: 66,
          qjjc: 78,
          dmsj: 1100,
          kzsj: 8456,
          ldsj: 159.2666,
          kgzw: 12554,
          kgyz: 1272426,
          jl: 122948,
          passnum: 7452,
          passweight: 664281,
          hyweight: 104673,
          kgzzl: 1598247.597,
          ask: 15672304,
          kghyzzl: 188163.066,
          kghyzzlXz: 744189.182,
          lkzzl: 854134.497,
          rpk: 9591494,
          hyzzl: 172653.015,
          yszzl: 1026787.512
        },
        {
          flightDate: "2021-02-08",
          zcjr: 28,
          rlyl: 4.82,
          bc: 56,
          qjjc: 70,
          dmsj: 941,
          kzsj: 7163,
          ldsj: 135.0663,
          kgzw: 11394,
          kgyz: 1153405,
          jl: 113472,
          passnum: 6694,
          passweight: 595899,
          hyweight: 94979,
          kgzzl: 1383577.036,
          ask: 13591303,
          kghyzzl: 160542.293,
          kghyzzlXz: 621942.505,
          lkzzl: 761634.531,
          rpk: 8570632,
          hyzzl: 162701.448,
          yszzl: 924335.979
        },
        {
          flightDate: "2021-02-09",
          zcjr: 28,
          rlyl: 5.39,
          bc: 62,
          qjjc: 76,
          dmsj: 1052,
          kzsj: 7998,
          ldsj: 150.8336,
          kgzw: 12268,
          kgyz: 1234353,
          jl: 122417,
          passnum: 7229,
          passweight: 642591,
          hyweight: 88020,
          kgzzl: 1510319.786,
          ask: 14953245,
          kghyzzl: 171641.598,
          kghyzzlXz: 689689.815,
          lkzzl: 820691.046,
          rpk: 9242064,
          hyzzl: 157613.58,
          yszzl: 978304.626
        },
        {
          flightDate: "2021-02-10",
          zcjr: 28,
          rlyl: 4.48,
          bc: 52,
          qjjc: 67,
          dmsj: 884,
          kzsj: 6648,
          ldsj: 125.5332,
          kgzw: 10877,
          kgyz: 1095916,
          jl: 110756,
          passnum: 6237,
          passweight: 552636,
          hyweight: 65320,
          kgzzl: 1280737.405,
          ask: 12680567,
          kghyzzl: 139755.454,
          kghyzzlXz: 552158.461,
          lkzzl: 728578.944,
          rpk: 8243455,
          hyzzl: 113090.226,
          yszzl: 841669.17
        },
        {
          flightDate: "2021-02-11",
          zcjr: 28,
          rlyl: 0.71,
          bc: 13,
          qjjc: 13,
          dmsj: 214,
          kzsj: 986,
          ldsj: 20.0002,
          kgzw: 1995,
          kgyz: 202000,
          jl: 10577,
          passnum: 1266,
          passweight: 112239,
          hyweight: 10328,
          kgzzl: 172872.423,
          ask: 1693503,
          kghyzzl: 20457.153,
          kghyzzlXz: 71659.881,
          lkzzl: 101212.542,
          rpk: 1144466,
          hyzzl: 13226.394,
          yszzl: 114438.936
        },
        {
          flightDate: "2021-02-12",
          zcjr: 28,
          rlyl: 0.99,
          bc: 13,
          qjjc: 13,
          dmsj: 187,
          kzsj: 1483,
          ldsj: 27.8332,
          kgzw: 2083,
          kgyz: 212779,
          jl: 17178,
          passnum: 1221,
          passweight: 106992,
          hyweight: 14958,
          kgzzl: 294880.047,
          ask: 2875246,
          kghyzzl: 36107.907,
          kghyzzlXz: 149581.203,
          lkzzl: 145298.844,
          rpk: 1663174,
          hyzzl: 23034.466,
          yszzl: 168333.31
        },
        {
          flightDate: "2021-02-13",
          zcjr: 28,
          rlyl: 2.12,
          bc: 28,
          qjjc: 34,
          dmsj: 475,
          kzsj: 3083,
          ldsj: 59.2999,
          kgzw: 5234,
          kgyz: 533782,
          jl: 47376,
          passnum: 3108,
          passweight: 271791,
          hyweight: 10063,
          kgzzl: 573336.112,
          ask: 5597777,
          kghyzzl: 69536.182,
          kghyzzlXz: 253006.672,
          lkzzl: 320329.44,
          rpk: 3669049,
          hyzzl: 13298.707,
          yszzl: 333628.147
        },
        {
          flightDate: "2021-02-14",
          zcjr: 28,
          rlyl: 4.1,
          bc: 52,
          qjjc: 56,
          dmsj: 764,
          kzsj: 6119,
          ldsj: 114.7164,
          kgzw: 9036,
          kgyz: 917186,
          jl: 78750,
          passnum: 5333,
          passweight: 466272,
          hyweight: 41207,
          kgzzl: 1175424.966,
          ask: 11511205,
          kghyzzl: 139643.017,
          kghyzzlXz: 551174.922,
          lkzzl: 624250.044,
          rpk: 7159943,
          hyzzl: 71064.731,
          yszzl: 695314.775
        },
        {
          flightDate: "2021-02-15",
          zcjr: 28,
          rlyl: 5.22,
          bc: 63,
          qjjc: 73,
          dmsj: 983,
          kzsj: 7792,
          ldsj: 146.2502,
          kgzw: 11427,
          kgyz: 1143098,
          jl: 111387,
          passnum: 6689,
          passweight: 587097,
          hyweight: 50549,
          kgzzl: 1447511.039,
          ask: 14391184,
          kghyzzl: 156862.765,
          kghyzzlXz: 669791.969,
          lkzzl: 777719.07,
          rpk: 8893257,
          hyzzl: 85334.241,
          yszzl: 863053.311
        },
        {
          flightDate: "2021-02-16",
          zcjr: 28,
          rlyl: 7.01,
          bc: 79,
          qjjc: 97,
          dmsj: 1352,
          kzsj: 10425,
          ldsj: 196.2833,
          kgzw: 15563,
          kgyz: 1574804,
          jl: 157688,
          passnum: 9348,
          passweight: 824841,
          hyweight: 69072,
          kgzzl: 1949026.006,
          ask: 19191943,
          kghyzzl: 226686.355,
          kghyzzlXz: 882795.304,
          lkzzl: 1066230.702,
          rpk: 12101967,
          hyzzl: 121125.731,
          yszzl: 1187356.433
        },
        {
          flightDate: "2021-02-17",
          zcjr: 28,
          rlyl: 8.86,
          bc: 98,
          qjjc: 116,
          dmsj: 1581,
          kzsj: 13308,
          ldsj: 248.1495,
          kgzw: 18512,
          kgyz: 1889090,
          jl: 194545,
          passnum: 11961,
          passweight: 1060488,
          hyweight: 90911,
          kgzzl: 2514476.819,
          ask: 24578270,
          kghyzzl: 304143.674,
          kghyzzlXz: 1072521.123,
          lkzzl: 1442971.512,
          rpk: 16294974,
          hyzzl: 145743.707,
          yszzl: 1588715.219
        },
        {
          flightDate: "2021-02-18",
          zcjr: 28,
          rlyl: 8.4,
          bc: 92,
          qjjc: 113,
          dmsj: 1703,
          kzsj: 12409,
          ldsj: 235.2003,
          kgzw: 18171,
          kgyz: 1835640,
          jl: 188027,
          passnum: 12154,
          passweight: 1080315,
          hyweight: 84806,
          kgzzl: 2311465.932,
          ask: 22767183,
          kghyzzl: 267709.65,
          kghyzzlXz: 899279.973,
          lkzzl: 1412185.959,
          rpk: 15896222,
          hyzzl: 133239.946,
          yszzl: 1545425.905
        },
        {
          flightDate: "2021-02-19",
          zcjr: 28,
          rlyl: 8.57,
          bc: 96,
          qjjc: 114,
          dmsj: 1637,
          kzsj: 12761,
          ldsj: 239.9668,
          kgzw: 18194,
          kgyz: 1836656,
          jl: 188746,
          passnum: 12927,
          passweight: 1145511,
          hyweight: 90057,
          kgzzl: 2400165.023,
          ask: 23652981,
          kghyzzl: 275086.091,
          kghyzzlXz: 842854.714,
          lkzzl: 1558712.385,
          rpk: 17615418,
          hyzzl: 148487.763,
          yszzl: 1707200.148
        },
        {
          flightDate: "2021-02-20",
          zcjr: 28,
          rlyl: 9.63,
          bc: 102,
          qjjc: 125,
          dmsj: 1932,
          kzsj: 14242,
          ldsj: 269.5668,
          kgzw: 19923,
          kgyz: 2023607,
          jl: 210963,
          passnum: 14085,
          passweight: 1250190,
          hyweight: 93592,
          kgzzl: 2619785.384,
          ask: 25713966,
          kghyzzl: 310864.686,
          kghyzzlXz: 928650.464,
          lkzzl: 1691134.92,
          rpk: 19070239,
          hyzzl: 152309.861,
          yszzl: 1843444.781
        },
        {
          flightDate: "2021-02-21",
          zcjr: 28,
          rlyl: 9.47,
          bc: 103,
          qjjc: 123,
          dmsj: 1803,
          kzsj: 14112,
          ldsj: 265.2506,
          kgzw: 19577,
          kgyz: 1999630,
          jl: 209704,
          passnum: 14019,
          passweight: 1242855,
          hyweight: 100868,
          kgzzl: 2689146.778,
          ask: 26270018,
          kghyzzl: 325979.722,
          kghyzzlXz: 959463.337,
          lkzzl: 1729683.441,
          rpk: 19530249,
          hyzzl: 173682.823,
          yszzl: 1903366.264
        },
        {
          flightDate: "2021-02-22",
          zcjr: 28,
          rlyl: 9.01,
          bc: 101,
          qjjc: 119,
          dmsj: 1763,
          kzsj: 13369,
          ldsj: 252.1997,
          kgzw: 18961,
          kgyz: 1929988,
          jl: 197693,
          passnum: 13198,
          passweight: 1171017,
          hyweight: 92838,
          kgzzl: 2555914.172,
          ask: 25037286,
          kghyzzl: 306454.132,
          kghyzzlXz: 929293.754,
          lkzzl: 1626620.418,
          rpk: 18353971,
          hyzzl: 159667.624,
          yszzl: 1786288.042
        },
        {
          flightDate: "2021-02-23",
          zcjr: 28,
          rlyl: 9.08,
          bc: 101,
          qjjc: 121,
          dmsj: 1875,
          kzsj: 13378,
          ldsj: 254.2168,
          kgzw: 19299,
          kgyz: 1953381,
          jl: 197462,
          passnum: 14065,
          passweight: 1248462,
          hyweight: 105172,
          kgzzl: 2525236.603,
          ask: 24836515,
          kghyzzl: 294082.997,
          kghyzzlXz: 856058.632,
          lkzzl: 1669177.971,
          rpk: 18819469,
          hyzzl: 171029.402,
          yszzl: 1840207.373
        },
        {
          flightDate: "2021-02-24",
          zcjr: 28,
          rlyl: 9.18,
          bc: 102,
          qjjc: 121,
          dmsj: 1751,
          kzsj: 13673,
          ldsj: 257.0673,
          kgzw: 19315,
          kgyz: 1945251,
          jl: 202282,
          passnum: 13732,
          passweight: 1217808,
          hyweight: 88081,
          kgzzl: 2587343.99,
          ask: 25564465,
          kghyzzl: 291574.946,
          kghyzzlXz: 914681.426,
          lkzzl: 1672662.564,
          rpk: 18893968,
          hyzzl: 143777.295,
          yszzl: 1816439.859
        },
        {
          flightDate: "2021-02-25",
          zcjr: 28,
          rlyl: 9.44,
          bc: 102,
          qjjc: 124,
          dmsj: 1916,
          kzsj: 13943,
          ldsj: 264.3171,
          kgzw: 19816,
          kgyz: 1963302,
          jl: 208831,
          passnum: 13998,
          passweight: 1242540,
          hyweight: 94460,
          kgzzl: 2545736.781,
          ask: 25622334,
          kghyzzl: 243178.922,
          kghyzzlXz: 895164.609,
          lkzzl: 1650572.172,
          rpk: 18613454,
          hyzzl: 153125.721,
          yszzl: 1803697.893
        }
      ]
    };
  }
};
